<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>

    <title>Bootstrap 模板</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../resources/static/js/jquery.validate.js" ></script>
    <script type="text/javascript" src="../resources/static/js/messages_zh.js" ></script>
</head>
<body>
<div class="container">
    <table>
        <tbody>
        <tr th:each="user,it:${userlist}">
            <td th:text="${it.index}">差</td>
            <td th:text="${user.name}">差</td>
            <td th:text="${user.password}">差</td>
        </tr>
        <tr>
            <select name="subId" id="subId" lay-verify="" >
                <option value="">请选择</option>
                <option th:each="channelsub:${userlist}"
                        th:value="${channelsub.id}"
                        th:text="${channelsub.name}"></option>
            </select>
        </tr>
        </tbody>
    </table>
</div>
<script th:inline="javascript">
    var size= [[${userlist.size()}]];
    console.info(size)

</script>
<script type="text/javascript" src="../resources/static/js/hello/main.js"></script>
</body>
</html>